Use updateTile() updateLayer() updateMap() functions...
... instead of setTile()
Then the editor simply changes the data and tells the map "display" to update.

A map editor SHOULD know how to create and modify map data... That's the only thing it does. It doesn't need to know how to display it.
The map system should NOT know how to edit its own data... That's what the map editor is for.